PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Geometric / Cathedral / xtramartin (95).milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=3 |
| 3 | PSVERSION_WARP=3 |
| 4 | PSVERSION_COMP=3 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.980 |
| 8 | fDecay=0.500 |
| 9 | fVideoEchoZoom=1.000 |
| 10 | fVideoEchoAlpha=0.500 |
| 11 | nVideoEchoOrientation=3 |
| 12 | nWaveMode=0 |
| 13 | bAdditiveWaves=1 |
| 14 | bWaveDots=0 |
| 15 | bWaveThick=0 |
| 16 | bModWaveAlphaByVolume=0 |
| 17 | bMaximizeWaveColor=0 |
| 18 | bTexWrap=1 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=0 |
| 22 | bDarken=1 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=0.001 |
| 26 | fWaveScale=0.010 |
| 27 | fWaveSmoothing=0.630 |
| 28 | fWaveParam=-1.000 |
| 29 | fModWaveAlphaStart=0.710 |
| 30 | fModWaveAlphaEnd=1.300 |
| 31 | fWarpAnimSpeed=1.459 |
| 32 | fWarpScale=2.007 |
| 33 | fZoomExponent=1.00000 |
| 34 | fShader=0.000 |
| 35 | zoom=0.99990 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00000 |
| 40 | dy=0.00000 |
| 41 | warp=0.01000 |
| 42 | sx=0.99990 |
| 43 | sy=1.00000 |
| 44 | wave_r=0.650 |
| 45 | wave_g=0.650 |
| 46 | wave_b=0.650 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.500 |
| 49 | ob_size=0.000 |
| 50 | ob_r=0.000 |
| 51 | ob_g=0.000 |
| 52 | ob_b=0.000 |
| 53 | ob_a=1.000 |
| 54 | ib_size=0.260 |
| 55 | ib_r=0.250 |
| 56 | ib_g=0.250 |
| 57 | ib_b=0.250 |
| 58 | ib_a=0.000 |
| 59 | nMotionVectorsX=12.800 |
| 60 | nMotionVectorsY=9.600 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.000 |
| 63 | mv_l=1.000 |
| 64 | mv_r=1.000 |
| 65 | mv_g=0.910 |
| 66 | mv_b=0.710 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=1.000 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.000 |
| 75 | wavecode_0_enabled=0 |
| 76 | wavecode_0_samples=512 |
| 77 | wavecode_0_sep=0 |
| 78 | wavecode_0_bSpectrum=0 |
| 79 | wavecode_0_bUseDots=0 |
| 80 | wavecode_0_bDrawThick=0 |
| 81 | wavecode_0_bAdditive=0 |
| 82 | wavecode_0_scaling=1.00000 |
| 83 | wavecode_0_smoothing=0.50000 |
| 84 | wavecode_0_r=1.000 |
| 85 | wavecode_0_g=1.000 |
| 86 | wavecode_0_b=1.000 |
| 87 | wavecode_0_a=1.000 |
| 88 | wavecode_1_enabled=0 |
| 89 | wavecode_1_samples=512 |
| 90 | wavecode_1_sep=0 |
| 91 | wavecode_1_bSpectrum=0 |
| 92 | wavecode_1_bUseDots=0 |
| 93 | wavecode_1_bDrawThick=0 |
| 94 | wavecode_1_bAdditive=0 |
| 95 | wavecode_1_scaling=1.00000 |
| 96 | wavecode_1_smoothing=0.50000 |
| 97 | wavecode_1_r=1.000 |
| 98 | wavecode_1_g=1.000 |
| 99 | wavecode_1_b=1.000 |
| 100 | wavecode_1_a=1.000 |
| 101 | wavecode_2_enabled=0 |
| 102 | wavecode_2_samples=512 |
| 103 | wavecode_2_sep=0 |
| 104 | wavecode_2_bSpectrum=0 |
| 105 | wavecode_2_bUseDots=0 |
| 106 | wavecode_2_bDrawThick=0 |
| 107 | wavecode_2_bAdditive=0 |
| 108 | wavecode_2_scaling=1.00000 |
| 109 | wavecode_2_smoothing=0.50000 |
| 110 | wavecode_2_r=1.000 |
| 111 | wavecode_2_g=1.000 |
| 112 | wavecode_2_b=1.000 |
| 113 | wavecode_2_a=1.000 |
| 114 | wavecode_3_enabled=0 |
| 115 | wavecode_3_samples=512 |
| 116 | wavecode_3_sep=0 |
| 117 | wavecode_3_bSpectrum=0 |
| 118 | wavecode_3_bUseDots=0 |
| 119 | wavecode_3_bDrawThick=0 |
| 120 | wavecode_3_bAdditive=0 |
| 121 | wavecode_3_scaling=1.00000 |
| 122 | wavecode_3_smoothing=0.50000 |
| 123 | wavecode_3_r=1.000 |
| 124 | wavecode_3_g=1.000 |
| 125 | wavecode_3_b=1.000 |
| 126 | wavecode_3_a=1.000 |
| 127 | shapecode_0_enabled=1 |
| 128 | shapecode_0_sides=100 |
| 129 | shapecode_0_additive=0 |
| 130 | shapecode_0_thickOutline=0 |
| 131 | shapecode_0_textured=0 |
| 132 | shapecode_0_num_inst=1 |
| 133 | shapecode_0_x=0.500 |
| 134 | shapecode_0_y=0.500 |
| 135 | shapecode_0_rad=0.49138 |
| 136 | shapecode_0_ang=0.00000 |
| 137 | shapecode_0_tex_ang=0.00000 |
| 138 | shapecode_0_tex_zoom=1.00000 |
| 139 | shapecode_0_r=1.000 |
| 140 | shapecode_0_g=1.000 |
| 141 | shapecode_0_b=0.100 |
| 142 | shapecode_0_a=1.000 |
| 143 | shapecode_0_r2=1.000 |
| 144 | shapecode_0_g2=0.000 |
| 145 | shapecode_0_b2=0.000 |
| 146 | shapecode_0_a2=0.000 |
| 147 | shapecode_0_border_r=1.000 |
| 148 | shapecode_0_border_g=1.000 |
| 149 | shapecode_0_border_b=1.000 |
| 150 | shapecode_0_border_a=0.000 |
| 151 | shape_0_per_frame1=x=.5+q4;y=.5+q5; |
| 152 | shapecode_1_enabled=1 |
| 153 | shapecode_1_sides=24 |
| 154 | shapecode_1_additive=0 |
| 155 | shapecode_1_thickOutline=0 |
| 156 | shapecode_1_textured=1 |
| 157 | shapecode_1_num_inst=1 |
| 158 | shapecode_1_x=0.500 |
| 159 | shapecode_1_y=1.800 |
| 160 | shapecode_1_rad=0.09053 |
| 161 | shapecode_1_ang=6.28319 |
| 162 | shapecode_1_tex_ang=0.00000 |
| 163 | shapecode_1_tex_zoom=8.92687 |
| 164 | shapecode_1_r=1.000 |
| 165 | shapecode_1_g=1.000 |
| 166 | shapecode_1_b=1.000 |
| 167 | shapecode_1_a=1.000 |
| 168 | shapecode_1_r2=1.000 |
| 169 | shapecode_1_g2=1.000 |
| 170 | shapecode_1_b2=1.000 |
| 171 | shapecode_1_a2=1.000 |
| 172 | shapecode_1_border_r=1.000 |
| 173 | shapecode_1_border_g=1.000 |
| 174 | shapecode_1_border_b=1.000 |
| 175 | shapecode_1_border_a=0.000 |
| 176 | shape_1_per_frame1=tex_ang=0.01; |
| 177 | shape_1_per_frame2=x=.5-q4; |
| 178 | shape_1_per_frame3=y=.5-q5; |
| 179 | shape_1_per_frame4=ang=time; |
| 180 | shapecode_2_enabled=0 |
| 181 | shapecode_2_sides=34 |
| 182 | shapecode_2_additive=0 |
| 183 | shapecode_2_thickOutline=0 |
| 184 | shapecode_2_textured=1 |
| 185 | shapecode_2_num_inst=1 |
| 186 | shapecode_2_x=0.500 |
| 187 | shapecode_2_y=0.500 |
| 188 | shapecode_2_rad=0.22167 |
| 189 | shapecode_2_ang=0.00000 |
| 190 | shapecode_2_tex_ang=0.00000 |
| 191 | shapecode_2_tex_zoom=0.40839 |
| 192 | shapecode_2_r=1.000 |
| 193 | shapecode_2_g=1.000 |
| 194 | shapecode_2_b=1.000 |
| 195 | shapecode_2_a=1.000 |
| 196 | shapecode_2_r2=0.000 |
| 197 | shapecode_2_g2=0.000 |
| 198 | shapecode_2_b2=0.000 |
| 199 | shapecode_2_a2=0.000 |
| 200 | shapecode_2_border_r=1.000 |
| 201 | shapecode_2_border_g=1.000 |
| 202 | shapecode_2_border_b=1.000 |
| 203 | shapecode_2_border_a=0.000 |
| 204 | shape_2_per_frame1=x=.5+q4;y=.5+q5; |
| 205 | shape_2_per_frame2=rad=sin(time);; |
| 206 | shapecode_3_enabled=0 |
| 207 | shapecode_3_sides=4 |
| 208 | shapecode_3_additive=0 |
| 209 | shapecode_3_thickOutline=0 |
| 210 | shapecode_3_textured=0 |
| 211 | shapecode_3_num_inst=1 |
| 212 | shapecode_3_x=0.500 |
| 213 | shapecode_3_y=0.500 |
| 214 | shapecode_3_rad=0.10000 |
| 215 | shapecode_3_ang=0.00000 |
| 216 | shapecode_3_tex_ang=0.00000 |
| 217 | shapecode_3_tex_zoom=1.00000 |
| 218 | shapecode_3_r=1.000 |
| 219 | shapecode_3_g=0.000 |
| 220 | shapecode_3_b=0.000 |
| 221 | shapecode_3_a=1.000 |
| 222 | shapecode_3_r2=0.000 |
| 223 | shapecode_3_g2=1.000 |
| 224 | shapecode_3_b2=0.000 |
| 225 | shapecode_3_a2=0.000 |
| 226 | shapecode_3_border_r=1.000 |
| 227 | shapecode_3_border_g=1.000 |
| 228 | shapecode_3_border_b=1.000 |
| 229 | shapecode_3_border_a=0.100 |
| 230 | per_frame_init_1=proxy = 3; pos_z = proxy*100; |
| 231 | per_frame_init_2=movz = 0; |
| 232 | per_frame_init_3=avg = 0; |
| 233 | per_frame_init_4=avg_= 2; |
| 234 | per_frame_1=dec_m = pow (0.95, 30/fps); dec_s = pow (0.99, 30/fps); |
| 235 | per_frame_2= |
| 236 | per_frame_3=beat = bass+mid+treb; |
| 237 | per_frame_4=avg = avg*dec_s + beat*(1-dec_s); |
| 238 | per_frame_5=avg_ = avg_*dec_s + avg*(1-dec_s); |
| 239 | per_frame_6=is_beat = above(beat, 4+avg+peak) * above (time, t0+1); |
| 240 | per_frame_7=t0 = is_beat*time + (1-is_beat)*t0; |
| 241 | per_frame_8=peak = is_beat * beat + (1-is_beat)*peak*dec_m; |
| 242 | per_frame_9=index = (index + is_beat) %16; |
| 243 | per_frame_10=//index2 = (index2 + is_beat*bnot(index))%8; |
| 244 | per_frame_11=q20 = avg_/3; |
| 245 | per_frame_12=q22 = max(0,peak-.0)+.01; |
| 246 | per_frame_13=q24 = is_beat; |
| 247 | per_frame_14=q27 = index +1; |
| 248 | per_frame_15= |
| 249 | per_frame_16=push = (avg-2.5)/3; |
| 250 | per_frame_17=ax = -(xang + min(max(push,-.7),.7))/3; //Divisor: 1/Frequenz |
| 251 | per_frame_18= |
| 252 | per_frame_19=ax = if (below(ax,0),ax*2,ax); |
| 253 | per_frame_20=vx = vx *(1-1/fps)+ ax/fps; //1/fps: Daempfung |
| 254 | per_frame_21=xang = xang + vx/fps; |
| 255 | per_frame_22=// WINKEL |
| 256 | per_frame_23=zang = 0; |
| 257 | per_frame_24=yang = - .5*sin(time/16); |
| 258 | per_frame_25=//yang = .7; |
| 259 | per_frame_26= |
| 260 | per_frame_27=//BEWEGUNG |
| 261 | per_frame_28=movz= if(above(avg_/3,1.2),1,movz); |
| 262 | per_frame_29=movz = if(below(avg_/3,.9),-1,movz); |
| 263 | per_frame_30=proxy = proxy + movz/fps/4; |
| 264 | per_frame_31=proxy = min(max(proxy,1.1),4); |
| 265 | per_frame_32=proxy = 4-3*abs(sin(time/24)); |
| 266 | per_frame_33=pos_z = dec_s * pos_z + (1-dec_s)*proxy*100; |
| 267 | per_frame_34= |
| 268 | per_frame_35=trelx = trelx + .1*sin(time/11)/fps*yang; |
| 269 | per_frame_36=q5 = trelx; |
| 270 | per_frame_37=trely = trely + xang*.2/fps; q6 = trely; |
| 271 | per_frame_38=//q6 = time*.03; |
| 272 | per_frame_39=vleaf = vleaf + (avg/64)/fps; |
| 273 | per_frame_40=q29 = vleaf; |
| 274 | per_frame_41=lrot = lrot + bass_att/fps*.2; |
| 275 | per_frame_42=q32 = lrot; |
| 276 | per_frame_43= |
| 277 | per_frame_44=ox = 0; oy = 0; oz = pos_z; |
| 278 | per_frame_45=mx = ox*cos(zang) - oy*sin(zang); |
| 279 | per_frame_46=my = ox*sin(zang) + oy*cos(zang); |
| 280 | per_frame_47=ox = mx;oy = my; |
| 281 | per_frame_48=mx = ox*cos(yang) + oz*sin(yang); |
| 282 | per_frame_49=mz = - ox*sin(yang) + oz*cos(yang); |
| 283 | per_frame_50=ox = mx;oz = mz; |
| 284 | per_frame_51=my = oy*cos(xang) - oz*sin(xang); |
| 285 | per_frame_52=mz = oy*sin(xang) + oz*cos(xang); |
| 286 | per_frame_53=oy = my;oz = mz; |
| 287 | per_frame_54=q11=ox; q12 = oy; q13 = oz; //Position |
| 288 | per_frame_55= |
| 289 | per_frame_56=//Vektor x nach rechts |
| 290 | per_frame_57=ox = 1; oy = 0; oz = 0; |
| 291 | per_frame_58=mx = ox*cos(zang) - oy*sin(zang); |
| 292 | per_frame_59=my = ox*sin(zang) + oy*cos(zang); |
| 293 | per_frame_60=ox = mx;oy = my; |
| 294 | per_frame_61=mx = ox*cos(yang) + oz*sin(yang); |
| 295 | per_frame_62=mz = - ox*sin(yang) + oz*cos(yang); |
| 296 | per_frame_63=ox = mx;oz = mz; |
| 297 | per_frame_64=my = oy*cos(xang) - oz*sin(xang); |
| 298 | per_frame_65=mz = oy*sin(xang) + oz*cos(xang); |
| 299 | per_frame_66=oy = my;oz = mz; |
| 300 | per_frame_67=q14=ox; q15 = oy; q16 = oz; |
| 301 | per_frame_68= |
| 302 | per_frame_69= |
| 303 | per_frame_70=//Vektor z nach hinten |
| 304 | per_frame_71=ox = 0; oy = 0; oz = 1;; |
| 305 | per_frame_72= |
| 306 | per_frame_73=mx = ox*cos(zang) - oy*sin(zang); |
| 307 | per_frame_74=my = ox*sin(zang) + oy*cos(zang); |
| 308 | per_frame_75=ox = mx;oy = my; |
| 309 | per_frame_76=mx = ox*cos(yang) + oz*sin(yang); |
| 310 | per_frame_77=mz = - ox*sin(yang) + oz*cos(yang); |
| 311 | per_frame_78=ox = mx;oz = mz; |
| 312 | per_frame_79=my = oy*cos(xang) - oz*sin(xang); |
| 313 | per_frame_80=mz = oy*sin(xang) + oz*cos(xang); |
| 314 | per_frame_81=oy = my; |
| 315 | per_frame_82=oz = mz; |
| 316 | per_frame_83=q17=ox; q18 = oy; q19 = oz; |
| 317 | per_frame_84= |
| 318 | per_frame_85=q31 = 20/pos_z; |
| 319 | per_frame_86=q32 = pos_z; |
| 320 | per_pixel_1=zoom = .995; |
| 321 | warp_1=`sampler sampler_pw_noise_lq; |
| 322 | warp_2=` |
| 323 | warp_3=`float3 ret1, stone, window; |
| 324 | warp_4=`float2 rsk, uv1, uv2, uv3, uv4, dz1, Kugel1; |
| 325 | warp_5=`float mask1, rad1, rill; |
| 326 | warp_6=`static float iter6 = (rand_preset.z > .5); |
| 327 | warp_7=`shader_body { |
| 328 | warp_8=` |
| 329 | warp_9=`float dx = abs(.5-frac(uv.x*88))*0; |
| 330 | warp_10=`float dy = abs(.5-frac(uv.y*88))*1; |
| 331 | warp_11=`uv += float2(dx,dy)*.0; |
| 332 | warp_12=` |
| 333 | warp_13=`uv1 = float2(uv.x-.5,uv.y-0.5); |
| 334 | warp_14=` |
| 335 | warp_15=`float2 uv3 = uv1;float dist = 43+18*iter6; |
| 336 | warp_16=`uv3 = dist * uv1; |
| 337 | warp_17=` |
| 338 | warp_18=`float ky = saturate(.04-uv3.y/40); |
| 339 | warp_19=`float k1 = uv3.x*.8 ;; |
| 340 | warp_20=` |
| 341 | warp_21=`k1 = k1 - sign (k1)*14; //Verdoppelung |
| 342 | warp_22=`k1 = k1 - sign (k1)*11; //Verdoppelung |
| 343 | warp_23=`k1 = k1 - sign (k1)*(2+rand_preset.y*8); //Verdoppelung |
| 344 | warp_24=` |
| 345 | warp_25=`int n = 1 ; |
| 346 | warp_26=`float delta = .1; |
| 347 | warp_27=`while (n <= 4+2*iter6) |
| 348 | warp_28=`{ |
| 349 | warp_29=` k1 += (-16*n*sign(k1))*ky*ky; |
| 350 | warp_30=` ky = saturate (ky - delta); |
| 351 | warp_31=` delta *= 1; |
| 352 | warp_32=` n++; |
| 353 | warp_33=`} |
| 354 | warp_34=`float k2 = k1; |
| 355 | warp_35=`k1 = clamp(k1,-1.6,1.6); |
| 356 | warp_36=`stone = saturate(cos(k1) -.1); |
| 357 | warp_37=` |
| 358 | warp_38=`rill = (rand_preset-.3)*saturate(cos(8*k2))*stone; |
| 359 | warp_39=` |
| 360 | warp_40=`ret = max(stone/2, GetPixel((uv-.5)*2 |
| 361 | warp_41=`+float2(-q15,q16))*(.66)) -.2*rill - 0.01; |
| 362 | warp_42=`} |
| 363 | comp_1=`sampler sampler_pw_noise_lq; |
| 364 | comp_2=`static float quality = 2, depth = q31; |
| 365 | comp_3=`float3 neu, rsl, rsl2, rsl3, ret1, screen3, back,lcol, sky; |
| 366 | comp_4=`float2 uv0, uv1, uv2, uv4; |
| 367 | comp_5=`float lprof,lprof2,m,n,dist,cloud,mask, shadow, mask1,lmask,leaves,clshadow,gmask; |
| 368 | comp_6=`static float lav_gnd = 0; |
| 369 | comp_7=`static const float anz = 3; |
| 370 | comp_8=`static float2 mov = float2 (q5,q6); |
| 371 | comp_9=` |
| 372 | comp_10=`static float3 t = float3(q14,q15,q16); |
| 373 | comp_11=`static float3 s = float3(q17,q18,q19); |
| 374 | comp_12=`static float3 ts = -cross(s,t); |
| 375 | comp_13=`static float3 pos = float3 (q11,q12,q13); |
| 376 | comp_14=` |
| 377 | comp_15=`float3 project (float3 pos, float dist) { |
| 378 | comp_16=` float z; |
| 379 | comp_17=` z = dist/mul(cross(ts,-t),screen3) *(1-lav_gnd); |
| 380 | comp_18=` gmask = (z <= 0)*(z >= -8); |
| 381 | comp_19=` return gmask* float3(mul(float2x3(ts,t),cross(pos,screen3))*z/256,-z);} |
| 382 | comp_20=` |
| 383 | comp_21=`float3 lproject (float3 pos, float dist) { |
| 384 | comp_22=` float z; |
| 385 | comp_23=` z = dist/mul(cross(ts,-t),screen3) *(1-lav_gnd) ; |
| 386 | comp_24=` return (z<=0)*(z>=-4)* float3(mul(float2x3(ts,t),cross(pos,screen3))*z/256,-z);} |
| 387 | comp_25=` |
| 388 | comp_26=`float noise2 (float2 uvi) |
| 389 | comp_27=`{return 1*(tex2D (sampler_noise_hq,uvi) + 0*tex2D (sampler_noise_hq,uvi*4)/4);} |
| 390 | comp_28=` |
| 391 | comp_29=`shader_body {uv0 = uv; |
| 392 | comp_30=`screen3 = float3 ((uv-.5)*aspect.xy,1);//wirkt wie zoom / Tele ### |
| 393 | comp_31=` |
| 394 | comp_32=`//*****leaves********** |
| 395 | comp_33=`lav_gnd = tex2D (sampler_noise_hq,uv)*.03; |
| 396 | comp_34=`rsl3 = lproject(pos,1.5) + float3 (q29,-time/118,0) + float3 (mov,0); |
| 397 | comp_35=`float glmask = tex2D (sampler_pw_noise_lq,rsl3.x*.004) >= .3; |
| 398 | comp_36=`uv2 = rsl3.xy*16; |
| 399 | comp_37=`uv2.y += tex2D (sampler_pw_noise_lq,uv2.x/256).g*-2*time; |
| 400 | comp_38=`float3 noise = 8*tex2D (sampler_pw_noise_lq,uv2/256); |
| 401 | comp_39=`lmask = noise.g >= 7.; lmask *= glmask; |
| 402 | comp_40=`uv2 = frac(uv2); |
| 403 | comp_41=`float lside = sin((noise.b-8)*2*time+q32); |
| 404 | comp_42=`float lsize = 3*(noise.g-6); |
| 405 | comp_43=`leaves = lmask*lsize *(3+frac(4*uv2.x/uv2.y))/4 |
| 406 | comp_44=` -26*length((uv2-.5)*float2(1,2/lside)); |
| 407 | comp_45=`lcol = (1+tex2D (sampler_noise_hq,uv2/8+noise))* float3 (.8+lside/4,.5,0);; |
| 408 | comp_46=`lcol -= tex2D (sampler_noise_hq,uv2+noise).r*.25; |
| 409 | comp_47=`leaves = saturate(leaves); |
| 410 | comp_48=` |
| 411 | comp_49=`//**** main part ****** |
| 412 | comp_50=`lav_gnd = 0; |
| 413 | comp_51=`rsl = project (pos, 1)+float3 (time*.006,.6,0); |
| 414 | comp_52=`back = saturate(1-rsl.y); |
| 415 | comp_53=`cloud = saturate(noise2(rsl.xy/8*float2(1,4))-.4)*saturate(.5+back); |
| 416 | comp_54=`back *= float3(.7,.77,.96); |
| 417 | comp_55=`sky = lerp(back,2*cloud,cloud/2); |
| 418 | comp_56=`//sky = back; |
| 419 | comp_57=`//sky = back + cloud/4; |
| 420 | comp_58=`ret1 = sky; |
| 421 | comp_59=`lprof2 = 0; |
| 422 | comp_60=`for (n=anz; n >= 1; n--) { |
| 423 | comp_61=` dist = (n); lav_gnd = 0; mov += n/anz; |
| 424 | comp_62=` for (m=1; m <= quality; m++) { |
| 425 | comp_63=` rsl = project (pos, dist)+float3 (mov,0); |
| 426 | comp_64=` lprof = .5-lum(GetBlur1(frac(rsl.xy))); //mittelwert null !# |
| 427 | comp_65=` lav_gnd -= lprof/quality*depth/rsl.z; |
| 428 | comp_66=` } |
| 429 | comp_67=` |
| 430 | comp_68=` rsl = project (pos, dist)+float3 (mov,0) ; |
| 431 | comp_69=` rsl2 = project (pos, dist)+float3 (0,0,0); |
| 432 | comp_70=` int first = (n==1); |
| 433 | comp_71=` if (!first) {shadow = saturate(4*GetPixel(frac(rsl2.xy))) ;} |
| 434 | comp_72=` neu = GetPixel(frac(rsl.xy)); |
| 435 | comp_73=` float dista = length(rsl.xy)*.001; |
| 436 | comp_74=` mask = saturate(16/dist*lum(neu))*gmask; |
| 437 | comp_75=` neu *= 1-.5*lum(tex2D (sampler_noise_lq,rsl.xy*4)); |
| 438 | comp_76=` clshadow = clamp (q20*1.6-noise2(rsl.xy*float2(.02,.1)+float2(time*.01,0)),.2,1); |
| 439 | comp_77=` neu *= (1-shadow*.5* (!first))*clshadow; |
| 440 | comp_78=` |
| 441 | comp_79=`// neu *= saturate(noise2(rsl.xy/16+time*.01)+q20-.5+0*(rsl.z)) ; // Abdunkelung hinten |
| 442 | comp_80=` neu = lerp(back, neu, saturate(5-rsl.z)); //Nebel |
| 443 | comp_81=` ret1 = lerp(ret1,neu,mask) ; |
| 444 | comp_82=`} |
| 445 | comp_83=` |
| 446 | comp_84=`rsl = project (pos, dist)+float3 (mov+lprof/2,0); |
| 447 | comp_85=` |
| 448 | comp_86=`ret1 = lerp(ret1,leaves*(1-shadow/2)*clshadow*lcol, leaves*.5*saturate(!mask)); |
| 449 | comp_87=`//ret1 *= clshadow; |
| 450 | comp_88=`//ret = 1-exp(-ret1*2+.1) ; |
| 451 | comp_89=`ret = ret1; |
| 452 | comp_90=` |
| 453 | comp_91=`//ret = GetPixel(uv0); |
| 454 | comp_92=`} |
| 455 | comp_93=` |
| 456 | comp_94=`written by martin |
| 457 | comp_95=`END |